package com.example.building_material_mannager.controller;
import com.example.building_material_mannager.entity.PurchaseTable;
import com.example.building_material_mannager.service.PurchaseTableService;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;
import java.util.List;
//查询处理器
@Controller
public class PurchaseTableController {
@Resource
    PurchaseTableService purchaseTableService;

      //添加
    public void add(PurchaseTable purchaseTable){
        System.out.println("添加");
    }
    //删除
    public void del(String pordernumber){
        System.out.println("删除");
    }
    //修改
    public void update(PurchaseTable purchaseTable){
        System.out.println("修改");
    }
    //展示
  public List<PurchaseTable> showpurchaseinfo(PurchaseTable purchaseTable){
      List<PurchaseTable> purchaseTables=purchaseTableService.select(purchaseTable);
      return  purchaseTables;
   }
}
